
<div class="widget">


    
    <div class="widgetContent bottom-border listing">
        <div class="row nomargin">
            <div class="col-md-12 col-sm-12 col-xs-12">
                <h2 class="text-muted"><?= $buylead->name;?></h2>
                
                <a href="#" class="btn btn-info pull-right"  data-toggle="modal"
								data-target=".leadView">Reply</a>
                <p>
                    <?php foreach (Terms::location($buylead->id) as $loc): ?>
                        <a href="#"><?= Locations::find($loc->value)->name; ?>, </a>
                    <?php endforeach; ?>

                    <?= Settings::get('en', 'default_location'); ?>
                </p>

                <h2 class="margin-top">
                   <?= $buylead->phone_no;?>
                </h2>

                

                <p class="thin margin-top">
                Products/Services: 
                   
                       <?php foreach (Terms::category($buylead->id) as $cat): ?>
                        <a href="#" class="text-warning"><?= Categories::find($cat->value)->name; ?>,</a>
                    <?php endforeach; ?>
                   
                </p>
                
                <hr>

                <p class="margin-bottom">
                    <?= $buylead->description;?>
                </p>


            </div>

        </div>
    </div>

</div>

<style>
    .leadView {
        /* new custom width */
        width: 900px;
		margin-left: auto;
   		 margin-right: auto;
    }
</style>
 <div class="modal  leadView" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
	
		<div class="modal-dialog modal-sm">
        <div class="modal-content ">
				<div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span class="sr-only">Close</span>x</button>
               <h4 class="modal-title" id="claimModalLabel">
						Reply To <?= $buylead->name;?>
						
					</h4>
            </div>
				<div class="modal-body">
					<div class="row">
                   
						<form id="post_lead" method="post"
							action="<?= URL::base();?>/products/requirement/lead"
							accept-charset="<?= Settings::get('en','charset');?>">
							<h2>Send Lead</h2>
							<span class="pull-right" id="lead_message"></span>

							
							<div class="row1" hidden="hidden">
								<div class="col-md-6">
									<label>Requirement Category 
									</label> <input type="text" placeholder="Type something…"
										class="field" name="req_category" id="req_category" value="<?= Categories::where('id','=',$buylead->category)->first()->name;?>">
								</div>
							</div>
							
							<div class="row1" hidden="hidden">
								<div class="col-md-6">
									<label>Requirement Email 
									</label> <input type="text" placeholder="Type something…"
										class="field" name="req_email" id="req_email" value="<?= $buylead->email;?>">
								</div>
							</div>
							
							<div class="row1">
								<div class="col-md-6">
									<label>Full Name 
									</label> <input type="text" placeholder="Type something…"
										class="field" name="lead_name" id="lead_name">
								</div>
								<div class="col-md-6">
									<label>Email 
									</label> <input type="text" placeholder="Type something…"
										class="field" name="lead_email" id="lead_email">
								</div>

							</div>

							<div class="row1">
								<div class="col-md-12">
									<label>Description  <span
										class="mute">( Minimum 25 character ) </span>
									</label>
									<textarea class="form-control field" rows="5"
										name="lead_description" id="lead_description"></textarea>
								</div>
							</div>



							<div class="modal-footer pull-left">
								<button type="button" class="btn btn-default"
									data-dismiss="modal">Close</button>
								<button type="submit" class="btn btn-primary" id="post_lead">Save
									changes</button>
							</div>


						</form>
						
					</div>
				</div>


			</div>
		</div>
	</div>